﻿using System;
using Microsoft.SharePoint.Administration;

namespace CodeCounsel.SharePoint2010.DigiD
{
    public class DigiDSettingsCollection : SPPersistedChildCollection<DigiDSettings>
    {
        internal DigiDSettingsCollection(DigiDService service) : base(service)
        {
        }

        public DigiDSettings Add(string siteUrl)
        {
            DigiDSettings connection = new DigiDSettings(siteUrl, (DigiDService)Parent);
            return Add(connection);
        }
    }
}
